package org.zs.miracle.common.base.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serial;
import lombok.Getter;
import lombok.Setter;

/**
 * 抽象id和创建时间、更新时间、创建人、更新人实体类基类
 */
@Getter public abstract class AbstractBaseEntity extends AbstractIdAndTimeEntity {
  
  @Serial
  private static final long serialVersionUID = 7070481894407373661L;
  
  /**
   * 创建人
   */
  @Setter
  @TableField(value = "created_by", fill = FieldFill.INSERT)
  private String createdBy;
  
  /**
   * 更新人
   */
  @Setter
  @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
  private String updatedBy;
  
  // public void setCreatedBy(String createdBy) {
  //   this.createdBy = createdBy;
  // }
  
  // public void setUpdatedBy(String updatedBy) {
  //   this.updatedBy = updatedBy;
  // }
}